import Taro, { Component } from '@tarojs/taro'
// 引入 Swiper, SwiperItem 组件
import { Swiper, SwiperItem, View, Text } from '@tarojs/components'

export default class SwiperTest extends Component {
    render() {
        return (
            <View>
                <Text>SwiperTest</Text>
                <Swiper
                  className='test-h'
                  indicatorColor='#999'
                  indicatorActiveColor='#333'
                  vertical
                  circular
                  indicatorDots
                  autoplay
                >
                    <SwiperItem>
                        <View className='demo-text-1'>1</View>
                    </SwiperItem>
                    <SwiperItem>
                        <View className='demo-text-2'>2</View>
                    </SwiperItem>
                    <SwiperItem>
                        <View className='demo-text-3'>3</View>
                    </SwiperItem>
                </Swiper>
            </View>
        )
    }
}